package cn.wp.common.core.id;

import cn.wp.common.core.exception.WpException;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * ID 配置
 * Created by chenyb on 2019/09/24
 */
@ConfigurationProperties(prefix = "wp.common.id")
@Component
@Data
public class IdProperties {

    private int wordId;

    private int dataCenterId;

    private String logPrefix = "[wp.common.id]";

}
